﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.AuthorizeRBAC
{
    /// <summary>
    /// 角色表
    /// </summary>
    [SugarTable("Roles")]
    public class Roles : BaseEntity
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int RolesId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设置长度
        public string? RolesName { get; set; }
        /// <summary>
        /// 角色编码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? RolesCode { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-删除
        /// </summary>
       
        public int? IsDel { get; set; }
        /// <summary>
        /// 状态 1-有效；2-无效
        /// </summary>
       
        public int? IsStatus { get; set; }
    }
}
